import datetime
import random
import time


def random_io_delay(min_delay=0.1, max_delay=2.0):
    """模拟随机I/O延迟"""
    print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
    delay = random.uniform(min_delay, max_delay)
    time.sleep(delay)
    return delay
